package com.yoooya.base.third.model.vo.cp;


import com.yoooya.base.third.utils.json.cp.WxCpGsonBuilder;

import java.io.Serializable;

/**
 *
 * @创建人 Sun Yijing
 * @创建时间 2018-07-08
 */
public class WxCpTag implements Serializable {

	private String id;

	private String name;

	public WxCpTag() {
		super();
	}

	public WxCpTag(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public static WxCpTag fromJson(String json) {
		return WxCpGsonBuilder.create().fromJson(json, WxCpTag.class);
	}

	public String toJson() {
		return WxCpGsonBuilder.create().toJson(this);
	}

}
